package cn.shiwei.shopcart.domain;

import cn.shiwei.basic.domain.BaseDomain;
import cn.shiwei.pet.domain.Pet;
import cn.shiwei.pet.domain.PetType;
import cn.shiwei.user.domain.Logininfo;
import lombok.Data;

import java.util.Date;

@Data
public class ShopCart extends BaseDomain{

    /**
     * 常量, 标识redis中对应的数据是用户购物和详情缓存
     */
    public static final String SHOPPING_CART_DETAILS = "SHOPPING_CART";
    /**
     * 常量, 购物状态为已添加
     */
    public static final Integer ADD_TO_CART = 1;
    /**
     * 常量, 购物状态为已删除
     */
    public static final Integer DEL_TO_CART = 2;
    /**
     * 常量, 购物状态为已 支付
     */
    public static final Integer PAY_TO_CART = 3;

    /**
     * 登录用户id
     */
    private Long logininfoId;
    private Logininfo logininfo = new Logininfo(); // 避免null
    /**
     * 商品id
     */
    private Long productId;
    private Pet pet = new Pet(); // 避免null
    /**
     * 购物车商品状态
     */
    private Integer shopState;
    /**
     * 商品类型(宠物类型)
     */
    private Long typeId;
    private String petType;
    private Integer total = 1;



}
